package com.xxl.job.admin.test;

import com.xxl.job.admin.utils.MD5Util;
import com.xxl.job.admin.utils.RegexUtil;

public class test {
    public static void main(String[] args) {
        String schedule = "@reboot";
        String command = "curl 123";
        System.out.println(RegexUtil.isValidCronExpression(schedule) + schedule + " " + command);

        String str = "Whh76534786.";
        System.out.println(MD5Util.encode(str));

        if (!RegexUtil.isValidCronExpression(schedule)){
            System.out.println(schedule+"格式有问题");
        }else {
            System.out.println("true");
        }

        String line = schedule.replaceFirst("#","") + " " +command;
        System.out.println(line);

    }

}
